package com.ssm.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ssm.util.FD;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

@SuppressWarnings("serial")
@Entity
@Table(name = "t_clazz")
@NameStyle(Style.normal)
public class Clazz implements Serializable{
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private Integer	id;
	@FD("班级")
	@Column(unique=true)
	private String	name;

	@FD("年份")
	private String	nian;
	@FD("班主任")
	private String	banzr;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNian() {
		return nian;
	}

	public void setNian(String nian) {
		this.nian = nian;
	}

	public String getBanzr() {
		return banzr;
	}

	public void setBanzr(String banzr) {
		this.banzr = banzr;
	}

}
